import { request } from 'umi'

// 麵包屑的數據
export const gitUserInfo = () => {
    return request('/getInfo')
}

// 默認用戶的數據
export const getProfile = () => {
    return request('/system/user/profile')
}
// 修改數據
export const publice=(data:any)=>{
    return request('/system/user/profile',{
        method:"PUT",
        data
    })
}

// 上傳頭像
export const upTou = (data: FormData) => {
    return request("/system/user/profile/avatar",{
            method: "POST",
            data
        }
    )
}